<template>
  <div class="chart12">
    <div id="chart12">

    </div>
  </div>
</template>

<script>
import echarts from 'echarts'


var option = {
  xAxis: {
    type: 'category',
    boundaryGap: false,
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    axisLine: { lineStyle: { color: '#ffffff' } }
  },
  grid: {
    top: '3%',
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  yAxis: {
    type: 'value',
    axisLine: { lineStyle: { color: '#ffffff' } }
  },
  series: [{
    data: [820, 932, 901, 934, 1290, 1330, 1320],
    type: 'line',
    areaStyle: {

    },
    smooth: true
  }]
};
export default {

  data() {
    return {
      box: null
    }
  },
  mounted() {
    this.init()
  },
  methods: {
    init() {
      this.box = echarts.init(document.getElementById('chart12'));
      this.box.setOption(option);
    },
    resize() {
      this.box.resize()
    }
  },
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.chart12 {
  width: 100%;
  height: 100%;
}
#chart12 {
  width: 100%;
  height: 100%;
}
</style>
